from django.urls import re_path
from . import views

urlpatterns = [
    # 判断用户名是否重复
    # re_path('^usernames/(?P<username>\w{5,20})/count/$',views.UsernameCountView.as_view()),
    #
    # # 判断手机号是否重复
    # re_path(r'^mobiles/(?P<mobile>1[3-9]\d{9})/count/$', views.MobileCountView.as_view()),

    # 图形验证码
    re_path(r'^image_codes/(?P<uuid>[\w-]+)/$', views.ImageCodeView.as_view()),

    # 获取短信验证码的子路由:
    re_path(r'^sms_codes/(?P<mobile>1[3-9]\d{9})/$', views.SMSCodeView.as_view())
]